package com.qmds.patrolserver.tickes.service.impl;


import com.qmds.common.core.entity.PatrolTickes;
import com.qmds.common.core.vo.R;
import com.qmds.patrolserver.tickes.dao.PatrolTickesDao;
import com.qmds.patrolserver.tickes.service.PatrolTickesService;
import com.qmds.patrolserver.tickes.vo.PatrolTickesVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (PatrolTickes)表服务实现类
 *
 * @author makejava
 * @since 2024-09-11 20:15:44
 */
@Service("patrolTickesService")
public class PatrolTickesServiceImpl implements PatrolTickesService {

    @Resource
    private PatrolTickesDao patrolTickesDao;

    @Override
    public R getAll() {
        List<PatrolTickes> patrolTickes = patrolTickesDao.selectList(null);
        return R.ok(patrolTickes);
    }

    @Override
    public R detail(Integer id) {
        List<PatrolTickesVo> patrolTickes =patrolTickesDao.selectDetail(id);
        return R.ok(patrolTickes);
    }




}

